//
//  Myslider.m
//  第二题
//
//  Created by dllo on 16/6/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Myslider.h"
#define COLOR [UIColor colorWithRed:arc4random() % 256 / 255.0 green:arc4random() % 256 / 255.0 blue:arc4random() % 256 / 255.0 alpha:1];

@implementation Myslider

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setProperty];
    }
    return self;
}

-(void)setProperty
{
    self.thumbTintColor = COLOR;
    self.minimumTrackTintColor = COLOR;
    self.maximumTrackTintColor = COLOR;
    
    self.minimumValue = 0;
    self.maximumValue = 100;
}

@end
